<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>LCOV - id:000977,sync:fuzzer2,src:001052.lcov_info_final - src/token.h</title>
  <link rel="stylesheet" type="text/css" href="../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LCOV - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
          <tr>
            <td width="10%" class="headerItem">Current view:</td>
            <td width="35%" class="headerValue"><a href="../index.html">top level</a> - <a href="index.html">src</a> - token.h<span style="font-size: 80%;"> (source / <a href="token.h.func-sort-c.html">functions</a>)</span></td>
            <td width="5%"></td>
            <td width="15%"></td>
            <td width="10%" class="headerCovTableHead">Hit</td>
            <td width="10%" class="headerCovTableHead">Total</td>
            <td width="15%" class="headerCovTableHead">Coverage</td>
          </tr>
          <tr>
            <td class="headerItem">Test:</td>
            <td class="headerValue">id:000977,sync:fuzzer2,src:001052.lcov_info_final</td>
            <td></td>
            <td class="headerItem">Lines:</td>
            <td class="headerCovTableEntry">5</td>
            <td class="headerCovTableEntry">10</td>
            <td class="headerCovTableEntryLo">50.0 %</td>
          </tr>
          <tr>
            <td class="headerItem">Date:</td>
            <td class="headerValue">2016-03-13 10:42:47</td>
            <td></td>
            <td class="headerItem">Functions:</td>
            <td class="headerCovTableEntry">5</td>
            <td class="headerCovTableEntry">6</td>
            <td class="headerCovTableEntryMed">83.3 %</td>
          </tr>
          <tr><td><img src="../glass.png" width=3 height=3 alt=""></td></tr>
        </table>
      </td>
    </tr>

    <tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td>
<pre class="sourceHeading">          Line data    Source code</pre>
<pre class="source">
<a name="1"><span class="lineNum">       1 </span>            : #ifndef TOKEN_H_62B23520_7C8E_11DE_8A39_0800200C9A66</a>
<span class="lineNum">       2 </span>            : #define TOKEN_H_62B23520_7C8E_11DE_8A39_0800200C9A66
<span class="lineNum">       3 </span>            : 
<span class="lineNum">       4 </span>            : #if defined(_MSC_VER) ||                                            \
<span class="lineNum">       5 </span>            :     (defined(__GNUC__) &amp;&amp; (__GNUC__ == 3 &amp;&amp; __GNUC_MINOR__ &gt;= 4) || \
<span class="lineNum">       6 </span>            :      (__GNUC__ &gt;= 4))  // GCC supports &quot;pragma once&quot; correctly since 3.4
<span class="lineNum">       7 </span>            : #pragma once
<span class="lineNum">       8 </span>            : #endif
<span class="lineNum">       9 </span>            : 
<span class="lineNum">      10 </span>            : #include &quot;yaml-cpp/mark.h&quot;
<span class="lineNum">      11 </span>            : #include &lt;iostream&gt;
<span class="lineNum">      12 </span>            : #include &lt;string&gt;
<span class="lineNum">      13 </span>            : #include &lt;vector&gt;
<a name="14"><span class="lineNum">      14 </span>            : </a>
<span class="lineNum">      15 </span>            : namespace YAML {
<span class="lineNum">      16 </span><span class="lineCov">      24432 : const std::string TokenNames[] = {</span>
<span class="lineNum">      17 </span>            :     &quot;DIRECTIVE&quot;, &quot;DOC_START&quot;, &quot;DOC_END&quot;, &quot;BLOCK_SEQ_START&quot;, &quot;BLOCK_MAP_START&quot;,
<span class="lineNum">      18 </span>            :     &quot;BLOCK_SEQ_END&quot;, &quot;BLOCK_MAP_END&quot;, &quot;BLOCK_ENTRY&quot;, &quot;FLOW_SEQ_START&quot;,
<span class="lineNum">      19 </span>            :     &quot;FLOW_MAP_START&quot;, &quot;FLOW_SEQ_END&quot;, &quot;FLOW_MAP_END&quot;, &quot;FLOW_MAP_COMPACT&quot;,
<a name="20"><span class="lineNum">      20 </span><span class="lineCov">      12216 :     &quot;FLOW_ENTRY&quot;, &quot;KEY&quot;, &quot;VALUE&quot;, &quot;ANCHOR&quot;, &quot;ALIAS&quot;, &quot;TAG&quot;, &quot;SCALAR&quot;};</span></a>
<span class="lineNum">      21 </span>            : 
<span class="lineNum">      22 </span><span class="lineCov">    1213569 : struct Token {</span>
<span class="lineNum">      23 </span>            :   // enums
<span class="lineNum">      24 </span>            :   enum STATUS { VALID, INVALID, UNVERIFIED };
<span class="lineNum">      25 </span>            :   enum TYPE {
<span class="lineNum">      26 </span>            :     DIRECTIVE,
<span class="lineNum">      27 </span>            :     DOC_START,
<span class="lineNum">      28 </span>            :     DOC_END,
<span class="lineNum">      29 </span>            :     BLOCK_SEQ_START,
<span class="lineNum">      30 </span>            :     BLOCK_MAP_START,
<span class="lineNum">      31 </span>            :     BLOCK_SEQ_END,
<span class="lineNum">      32 </span>            :     BLOCK_MAP_END,
<span class="lineNum">      33 </span>            :     BLOCK_ENTRY,
<span class="lineNum">      34 </span>            :     FLOW_SEQ_START,
<span class="lineNum">      35 </span>            :     FLOW_MAP_START,
<span class="lineNum">      36 </span>            :     FLOW_SEQ_END,
<span class="lineNum">      37 </span>            :     FLOW_MAP_END,
<span class="lineNum">      38 </span>            :     FLOW_MAP_COMPACT,
<span class="lineNum">      39 </span>            :     FLOW_ENTRY,
<span class="lineNum">      40 </span>            :     KEY,
<span class="lineNum">      41 </span>            :     VALUE,
<span class="lineNum">      42 </span>            :     ANCHOR,
<span class="lineNum">      43 </span>            :     ALIAS,
<span class="lineNum">      44 </span>            :     TAG,
<span class="lineNum">      45 </span>            :     PLAIN_SCALAR,
<span class="lineNum">      46 </span>            :     NON_PLAIN_SCALAR
<span class="lineNum">      47 </span>            :   };
<a name="48"><span class="lineNum">      48 </span>            : </a>
<span class="lineNum">      49 </span>            :   // data
<span class="lineNum">      50 </span><span class="lineCov">     363811 :   Token(TYPE type_, const Mark&amp; mark_)</span>
<a name="51"><span class="lineNum">      51 </span><span class="lineCov">     363811 :       : status(VALID), type(type_), mark(mark_), data(0) {}</span></a>
<span class="lineNum">      52 </span>            : 
<span class="lineNum">      53 </span><span class="lineNoCov">          0 :   friend std::ostream&amp; operator&lt;&lt;(std::ostream&amp; out, const Token&amp; token) {</span>
<span class="lineNum">      54 </span><span class="lineNoCov">          0 :     out &lt;&lt; TokenNames[token.type] &lt;&lt; std::string(&quot;: &quot;) &lt;&lt; token.value;</span>
<span class="lineNum">      55 </span><span class="lineNoCov">          0 :     for (std::size_t i = 0; i &lt; token.params.size(); i++)</span>
<span class="lineNum">      56 </span><span class="lineNoCov">          0 :       out &lt;&lt; std::string(&quot; &quot;) &lt;&lt; token.params[i];</span>
<span class="lineNum">      57 </span><span class="lineNoCov">          0 :     return out;</span>
<span class="lineNum">      58 </span>            :   }
<span class="lineNum">      59 </span>            : 
<span class="lineNum">      60 </span>            :   STATUS status;
<span class="lineNum">      61 </span>            :   TYPE type;
<span class="lineNum">      62 </span>            :   Mark mark;
<span class="lineNum">      63 </span>            :   std::string value;
<span class="lineNum">      64 </span>            :   std::vector&lt;std::string&gt; params;
<span class="lineNum">      65 </span>            :   int data;
<span class="lineNum">      66 </span>            : };
<span class="lineNum">      67 </span>            : }
<span class="lineNum">      68 </span>            : 
<span class="lineNum">      69 </span>            : #endif  // TOKEN_H_62B23520_7C8E_11DE_8A39_0800200C9A66
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="ruler"><img src="../glass.png" width=3 height=3 alt=""></td></tr>
    <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.11</a></td></tr>
  </table>
  <br>

</body>
</html>
